<?php

declare(strict_types=1);

namespace App\Model;


/**
 * @property int $id ID
 * @property int $userid 管理员编号
 * @property string $username 管理员用户名
 * @property string $action 动作
 * @property string $action_data 动作数据
 * @property int $op_time 操作时间
 */
class AdminLog extends Model
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'admin_logs';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'userid', 'username', 'action', 'action_data', 'op_time'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'userid' => 'integer', 'op_time' => 'integer'];
}
